import {request} from '@/utils/request'

export async function getEnterprises(data){
  return request('api/enterprises','get',data)
}

export async function delEnterprises(id){
    return request(`api/enterprises/${id}`,'delete')
}

export async function updataEnterprises(data){
    return request(`api/enterprises/${data.id}`,'put',data)
}

export async function addEnterprises(data){
    return request('api/enterprises','post',data)
}

export async function getEnterprise(id){
    return request(`api/enterprises/${id}`,'get')
}

export default {
    getEnterprises,
    getEnterprise,
    addEnterprises,
    updataEnterprises,
    delEnterprises
}
